package com.zp.decorator;/**
 * @description
 * @author zp
 * @created 2021/9/3 21:11
 */

import com.zp.entity.Color;

/**
 * @author zp
 * @description
 * @created 2021/9/3 21:11
 */
public abstract class ColorDecorator implements Color {
    protected Color decoratorColor;
    public ColorDecorator(Color color){
        this.decoratorColor = color;
    }
    public void fill(){
        System.out.println("这是普通的装饰模式");
        decoratorColor.fill();
    }
}
